Book Contents

Create a RecipePlus button

Use the RecipePlus button to initiate RecipePlus operations at run time. Each button can perform one of the following operations:

  • Download writes the ingredient values in the data set of the recipe unit currently selected in the selector object to the tags in the unit's tag set
  • Upload reads the tag values in the tag set of the recipe unit currently selected in the selector object and saves those values to the unit's data set
  • Upload and create reads the tag values in the tag set of the unit currently selected in the selector object and creates a new recipe unit by writing those values to a new data set
  • Save saves the values in a recipe table object to a recipe file
  • Restore loads the values from a recipe unit to a recipe table object
  • Delete deletes the recipe unit currently selected in the selector object
  • Rename renames the recipe unit currently selected in the selector object

The buttons work with the RecipePlus selector object and the RecipePlus table object. Download, upload, upload and create, delete, and rename operations work on the recipe currently selected in the selector. Restore and save operations work with the RecipePlus table object.

Create a separate button on the graphic display for each operation.

Tip:

If a display containing a RecipePlus table is closed while the recipe system is restoring a recipe, the restore operation will be canceled.

To create a RecipePlus button object

  1. In the Graphics editor, choose RecipePlus from the Objects menu, and then choose Button.
  2. Drag the mouse to draw and position a rectangle of the general size and in the general location that you want the button to be.
  3. Double-click the button to open its Properties dialog box.
  4. In the Properties tabs, specify:
    • how the button looks
    • whether it beeps when pressed
    • what action it will perform
    • the caption or image to use on the button
    • its common properties

See also

Configure the button (General tab)

Set up a caption and image for a button

Create a RecipePlus Selector

Create a RecipePlus table

How the RecipePlus objects work at runtime

Keywords: RecipePlus